package com.wise.domain.lombok;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

/**
 * @RequiredArgsConstructor，为所有 final 和 @NonNull 修饰的字段生成一个构造方法。
 */
@RequiredArgsConstructor
public class RequiredArgsConstructorL {

    @Getter
    private final String finalField;
    @NonNull
    @Getter
    @Setter
    private String nonNullField;
    @Getter
    @Setter
    private String commonField;

    public static void main(String[] args) {
        RequiredArgsConstructorL requiredArgsConstructorL = new RequiredArgsConstructorL("Final Field", "non Null Field");
    }
}
